<script language="javascript" src="__FINANCE__/Scripts/jQuery.print.js"></script>
<script language="javascript">
//    jQuery("#ele1").print({
//        //Use Global styles
//        /*globalStyles : false,*/
//        //Add link with attrbute media=print
//        mediaPrint : false,
//        //Custom stylesheet
//        /*stylesheet : "http://fonts.googleapis.com/css?family=Inconsolata",*/
//        //Print in a hidden iframe
//        iframe : false,
//        //Don't print this
//        noPrintSelector : ".avoid-this",
//        //Add this at top
//        prepend : content,
//        //Add this on bottom
//        append : "<br/>Buh Bye!",
//        deferred: $.Deferred().done(function() {console.log('Printing done', arguments); })
//    });
</script>
<!--<button style="float: right" id="testPrint" class="print-link no-print" onclick="jQuery('#ddd').print()">-->
    <!--打印-->
<!--</button>onclick="jQuery('#ddd').print()"-->
<button style="float: right;margin-right: 10px" type="button" class="layui-btn layui-btn-normal print-link no-print" id="testPrint" onclick="jQuery('#ddd').print()">打印</button>
<div class="layui-form" id="ddd">
    <fieldset class="layui-elem-field layui-field-title">
        <legend style="margin-left: 40%">新乡市市纪委监委差旅费报销单 </legend>
    </fieldset>
    <span style="width: 30%">填表人:{$data['fill_from']}</span>
    <span style="width: 40%;margin-left: 30%">出差人数：共{$data['number_people']}人</span>
    <span style="width: 30%;margin-left: 30%">日期：{$data['fill_time']}</span>
    <table class="layui-table" id="test">
        <colgroup>
            <col width="100">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="150">
            <col width="200">
            <col>
        </colgroup>
        <thead>
        <tr>
            <th colspan="3" style="text-align:center;vertical-align:middle;">起点</th>
            <th colspan="3" style="text-align:center;vertical-align:middle;">止点</th>
            <th colspan="3" style="text-align:center;vertical-align:middle;">伙食补助</th>
            <th colspan="3" style="text-align:center;vertical-align:middle;">住宿费</th>
            <th colspan="2" style="text-align:center;vertical-align:middle;">车船费</th>
            <th colspan="2" style="text-align:center;vertical-align:middle;">卧铺补助</th>
            <th colspan="3" style="text-align:center;vertical-align:middle;">市内交通费</th>
            <th style="text-align:center;vertical-align:middle;">路桥费</th>
            <th style="text-align:center;vertical-align:middle;">其他</th>
            <th style="text-align:center;vertical-align:middle;">合计</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th width="33">月</th>
            <th width="33">日</th>
            <th width="33">地点</th>
            <th width="33">月</th>
            <th width="33">日</th>
            <th width="33">地点</th>
            <th width="33">天数</th>
            <th width="33">标准</th>
            <th width="33">金额</th>
            <th width="33">天数</th>
            <th width="33">标准</th>
            <th width="33">金额</th>
            <th width="33">种类</th>
            <th width="33">金额</th>
            <th width="33">标准</th>
            <th width="33">金额</th>
            <th width="33">天数</th>
            <th width="33">标准</th>
            <th width="33">金额</th>
            <td rowspan="2">{$data['road_bridge_money']}</td>
            <td rowspan="2">{$data['other']}</td>
            <td rowspan="2">{$data['total']}</td>
        </tr>
        <tr>
            <td>{:date('m',strtotime($data['start_time']))}</td>
            <td>{:date('d',strtotime($data['start_time']))}</td>
            <td>{$data['start_site']}</td>
            <td>{:date('m',strtotime($data['end_time']))}</td>
            <td>{:date('d',strtotime($data['end_time']))}</td>
            <td>{$data['end_site']}</td>
            <td>{$data['eat_subsidy_day']}</td>
            <td>{$data['eat_subsidy_standard']}</td>
            <td>{$data['eat_subsidy_money']}</td>
            <td>{$data['stay_day']}</td>
            <td>{$data['stay_standard']}</td>
            <td>{$data['stay_money']}</td>
            <td>{$data['traffic_kind']}</td>
            <td>{$data['traffic_money']}</td>
            <td>{$data['sleeper_standard']}</td>
            <td>{$data['sleeper_money']}</td>
            <td>{$data['city_traffic_day']}</td>
            <td>{$data['city_traffic_standard']}</td>
            <td>{$data['city_traffic_money']}</td>

        </tr>
        <tr>
            <td colspan="4" style="text-align:left;vertical-align:middle;">合计大写</td>
            <td colspan="10" style="text-align:left;vertical-align:middle;">{$data['sum_chinese']}</td>
            <td colspan="8" style="text-align:left;vertical-align:middle;">¥{$data['sum']}</td>
        </tr>
        <tr>
            <td colspan="5" style="text-align:left;vertical-align:middle;">出差人(签字)</td>
            <td colspan="12" style="text-align:left;vertical-align:middle;">{$data['business_people']}</td>
            <td colspan="2" style="text-align:left;vertical-align:middle;">室(部)负责人</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;">{$data['department_head']}</td>
        </tr>
        <tr>
            <td colspan="3" style="text-align:left;vertical-align:middle;">分管领导</td>
            <td colspan="2" style="text-align:left;vertical-align:middle;">{$data['brancher_leader']}</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;">办公室主任</td>
            <td colspan="2" style="text-align:left;vertical-align:middle;">{$data['office_director']}</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;size: 12px">主管办公室副书记(壹万元及以上)</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;">{$data['secretary']}</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;">审批领导</td>
            <td colspan="3" style="text-align:left;vertical-align:middle;">{$data['examine_leader']}</td>
        </tr>
        </tbody>
    </table>
</div>
